<?php
  include("../includes/connection.php");

  function cekMenu($filename) 
  {
    $file = $_SERVER["SCRIPT_NAME"];
    $arrFile = pathinfo($file);
    $file1 = explode("-", $arrFile["filename"]);
    $file2 = pathinfo($filename);
    if($file1[0] == $file2["filename"])
    {
      return "active";
    }
  }
?>
<!DOCTYPE html>
<html>
  <head>
    <title>Azure Software Development and Design</title>
    <meta name="keywords" content="4zure, azure, software development, design, SEO, website, logo" />
    <meta name="description" content="This is azure description." />

    <link href='http://fonts.googleapis.com/css?family=Josefin+Sans:400,300,600' rel='stylesheet' type='text/css'>
    <link href='http://fonts.googleapis.com/css?family=Raleway:400,100' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <link rel="stylesheet" href="../css/user-style.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="css/lazuli-style.css">
    <link rel="stylesheet" href="css/blueimp-gallery.min.css">
    <link rel="stylesheet" href="css/jquery.fileupload.css">
    

    <script src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/jquery.inview.min.js"></script>
    <script type="text/javascript" src="../js/jquery.inview.js"></script>
  </head>
  <body>

  <div class="col-xs-2" id="sidebar">
    <ul class="nav nav-pills nav-stacked">
      <li class="<?php echo cekMenu('portfolio.php'); ?>"><a href="portfolio.php">PortFolio</a></li>
      <li class="<?php echo cekMenu('profile.php'); ?>"><a href="profile.php">Profile</a></li>
      <li><a href="#">Messages</a></li>
    </ul>
  </div>